import java.util.Scanner;
public class A2{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入我对他的好感度");
		int me = sc.nextInt();
		System.out.println("请输入他对我的好感度");
		int him = sc.nextInt();
		boolean ifgood = me > him;
		System.out.println(ifgood);
		
		// &两者都真才真,其他均假; |两者都假才假,其他均真;^相同为真,不同为假
		// &&,||和 &,| 逻辑相同,不同在于:
		// &&,||有短路效果,即左边表达式能确定最终结果,右边不再参与运行
		int a = 10;
		int b = 10;
		boolean result1 = ++a < 5 & ++b < 5;
		System.out.println(result1);//false
		System.out.println(a);//11
		System.out.println(b);//11
		int c = 10;
		int d = 10;
		boolean result2 = ++c < 5 && ++d < 5;
		System.out.println(result2);//false 
		System.out.println(c);//11
		System.out.println(d);//10
	}
}
